<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>inline 文本内联</title>

    <script th:inline="javascript">
        var msg = 'Hello ' + [[${userName}]]+'! ';
        alert(msg);
    </script>

</head>
<body>

<!--        <script th:inline="javascript">-->
<!--            var msg = 'Hello ' + [[${userName}]]+'! ';-->
<!--            alert(msg);-->
<!--        </script>-->


</body>
</html>